.class Lcom/netease/newsreader/activity/SelectColumn$CheckBoxItem;
.super Ljava/lang/Object;
.source "SelectColumn.java"

# interfaces
.implements Lcom/netease/newsreader/util/BasePageViewAdapter$ViewBinder;


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lcom/netease/newsreader/activity/SelectColumn;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x2
    name = "CheckBoxItem"
.end annotation


# instance fields
.field final synthetic this$0:Lcom/netease/newsreader/activity/SelectColumn;


# direct methods
.method private constructor <init>(Lcom/netease/newsreader/activity/SelectColumn;)V
    .locals 0
    .parameter

    .prologue
    .line 179
    iput-object p1, p0, Lcom/netease/newsreader/activity/SelectColumn$CheckBoxItem;->this$0:Lcom/netease/newsreader/activity/SelectColumn;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method

.method synthetic constructor <init>(Lcom/netease/newsreader/activity/SelectColumn;Lcom/netease/newsreader/activity/SelectColumn$CheckBoxItem;)V
    .locals 0
    .parameter
    .parameter

    .prologue
    .line 179
    invoke-direct {p0, p1}, Lcom/netease/newsreader/activity/SelectColumn$CheckBoxItem;-><init>(Lcom/netease/newsreader/activity/SelectColumn;)V

    return-void
.end method


# virtual methods
.method public setViewValue(Landroid/view/View;Ljava/lang/Object;Ljava/lang/String;)Z
    .locals 7
    .parameter "view"
    .parameter "data"
    .parameter "textRepresentation"

    .prologue
    const/4 v5, 0x1

    const/4 v4, 0x0

    .line 187
    instance-of v6, p1, Landroid/widget/CheckBox;

    if-eqz v6, :cond_0

    .line 189
    :try_start_0
    move-object v0, p2

    check-cast v0, Ljava/util/HashMap;

    move-object v4, v0

    .line 190
    const-string v6, "item_index"

    .line 189
    invoke-virtual {v4, v6}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v4

    .line 190
    invoke-virtual {v4}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object v4

    .line 189
    invoke-static {v4}, Ljava/lang/Integer;->parseInt(Ljava/lang/String;)I

    move-result v2

    .line 191
    .local v2, i:I
    check-cast p2, Ljava/util/HashMap;

    .line 192
    .end local p2
    const-string v4, "checkbox_status"

    .line 191
    invoke-virtual {p2, v4}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v4

    .line 192
    invoke-virtual {v4}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object v3

    .line 194
    .local v3, status:Ljava/lang/String;
    invoke-virtual {p1, v2}, Landroid/view/View;->setId(I)V

    .line 195
    move-object v0, p1

    check-cast v0, Landroid/widget/CheckBox;

    move-object v4, v0

    iget-object v6, p0, Lcom/netease/newsreader/activity/SelectColumn$CheckBoxItem;->this$0:Lcom/netease/newsreader/activity/SelectColumn;

    invoke-static {v6}, Lcom/netease/newsreader/activity/SelectColumn;->access$6(Lcom/netease/newsreader/activity/SelectColumn;)Landroid/widget/CompoundButton$OnCheckedChangeListener;

    move-result-object v6

    invoke-virtual {v4, v6}, Landroid/widget/CheckBox;->setOnCheckedChangeListener(Landroid/widget/CompoundButton$OnCheckedChangeListener;)V

    .line 197
    const-string v4, "true"

    invoke-virtual {v3, v4}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v4

    if-eqz v4, :cond_1

    .line 198
    check-cast p1, Landroid/widget/CheckBox;

    .end local p1
    const/4 v4, 0x1

    invoke-virtual {p1, v4}, Landroid/widget/CheckBox;->setChecked(Z)V

    .end local v2           #i:I
    .end local v3           #status:Ljava/lang/String;
    :goto_0
    move v4, v5

    .line 210
    :cond_0
    return v4

    .line 200
    .restart local v2       #i:I
    .restart local v3       #status:Ljava/lang/String;
    .restart local p1
    :cond_1
    check-cast p1, Landroid/widget/CheckBox;

    .end local p1
    const/4 v4, 0x0

    invoke-virtual {p1, v4}, Landroid/widget/CheckBox;->setChecked(Z)V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_0

    .line 202
    .end local v2           #i:I
    .end local v3           #status:Ljava/lang/String;
    :catch_0
    move-exception v1

    .line 204
    .local v1, e:Ljava/lang/Exception;
    invoke-virtual {v1}, Ljava/lang/Exception;->printStackTrace()V

    goto :goto_0
.end method
